﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UpLoadFile.aspx.cs" Inherits="UpLoadFile" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>上传模板</title>    
 

</head>
<body>
  <form id="form1" runat="server" method="post" enctype="multipart/form-data">
  
  <h3>模板上传</h3>
  
   用户名：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
   <asp:TextBox 
        ID="txtUserName" 
        Width ="200" 
        runat="server"
        Enabled="false" ></asp:TextBox>
  
  <br />
  <br /> 
  <div id="Div3">
      服务器地址：&nbsp;&nbsp;
    <asp:DropDownList 
        ID="ddlSqlAddress" 
        Width ="200" 
        runat="server"></asp:DropDownList>
    <asp:HyperLink 
      ID="hlAppendSqlInfo" 
      runat="server"
      NavigateUrl="~/page/AppendSqlInfo.aspx" >点击进入服务器添加页面</asp:HyperLink>    
  </div>
  
  <br />
  <div>
    数据库：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <asp:DropDownList 
        ID="ddlSqlDB" 
        Width ="200"
        runat="server">
      </asp:DropDownList>
  </div>
  
  <br />
  <div>
    平台：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;     <asp:DropDownList 
        ID="ddlExpBoardPlatform" 
        Width ="200" 
        runat="server"></asp:DropDownList>
  </div>
  
  <br />
  <div>
    工序：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:DropDownList 
        ID="ddlExpBoardProcess" 
        Width ="200" 
        runat="server">
      </asp:DropDownList>    
  </div>
  
  <br /> 
  <div id="Div2">
    模板名：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    <asp:DropDownList 
        ID="ddlExpBoardProductName" 
        Width ="200" 
        runat="server"></asp:DropDownList>
      <br />
      <br />
    模板版本：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:DropDownList 
        ID="ddlExpBoardVersion"
        Width ="80"  
        runat="server">
        <asp:ListItem>S1.0</asp:ListItem>
      </asp:DropDownList>
  </div>
   
  <br /> 
  <div id="Div1">
    数据模板项结束位置：&nbsp;
    <asp:TextBox 
        ID="txtRows" 
        Width="30" 
        runat="server"></asp:TextBox>
  &nbsp; <a style="color: #FF0000">此处填写输出模板最后一项在EXCEL中的位置 例如 C197</a></div>
  <br /> 
   
  <div id="_container">
    输出模板：&nbsp;&nbsp;&nbsp; 
      <asp:FileUpload ID="FileUpload1" runat="server" />
      <br />
      </div>
  
  <div id="_container2">
      <br />
&nbsp;<asp:Button 
        runat="server" 
        Text="添加模板" 
        ID="AppendButton" 
        onclick="AppendButton_Click"></asp:Button>
  &nbsp;&nbsp;
      <asp:Button 
        runat="server" 
        Text="开始上传" 
        ID="UpLoadButton" 
        onclick="UpLoadButton_Click"></asp:Button>
  </div>
  
  <div>
      <asp:HyperLink 
        ID="hl1" 
        runat="server"
        NavigateUrl="~/page/BrowseDatas.aspx">返回[浏览数据]</asp:HyperLink>
  </div>
  
  <br />
  
  <div>
    <asp:Label 
        ID="strStatus" 
        runat="server" 
        Font-Names="宋体" 
        Font-Bold="True" 
        Font-Size="9pt"
        Width="500px" 
        BorderStyle="None" 
        BorderColor="White">
    </asp:Label>
  </div>

  </form>
</body>
</html>
